Convert the date to datetime (midnight of the date)ΒΆ

Convert the date to datetime (midnight of the date) in python.

Output:

.. code-block:: py

from datetime import date from datetime import datetime

dt = date.today() print(datetime.combine(dt, datetime.min.time()))

Output:

2017-05-06 00:00:00